<html>
	<head>
		<meta charset="utf-8"/>
		<style type="text/css">
			th{
				background-color: lightblue;
			}
			table,table tr th,table tr td{
				border: 1px solid cadetblue;
			}
			table{
				width: 700px;
				line-height: 25px;
				text-align: center;
				margin: 20px auto;
				border-color: lightblue;
				border-collapse: collapse;
			}
	</style>
	</head>
	<body>
		<h3 style="text-align: center;">课表</h3>
		<table>
			<thead style=background-color:lightblue;">
				<tr>
					<th>节次</th>
					<th>周一</th>
					<th>周二</th>
					<th>周三</th>
					<th>周四</th>
					<th>周五</th>
					<th>周六</th>
					<th>周日</th>
				</tr>
			</thead>
			<tbody>
			<?php
				header("Content-Type: text/html;charset=utf-8");
				include_once("./conn.php");
				$pdo->query("set names 'utf8'");
				$sql="select * from db_week";
				$pds=$pdo->prepare($sql);
				$pds->execute();
				while($row=$pds->fetch()){
			?>	
				<tr>
					<td><?php echo $row['id']?></td>
					<td><?php echo $row['monday']?></td>
					<td><?php echo $row['tuesday']?></td>
					<td><?php echo $row['wednesday']?></td>
					<td><?php echo $row['thursday']?></td>
					<td><?php echo $row['friday']?></td>
					<td><?php echo $row['saturday']?></td>
					<td><?php echo $row['sunday']?></td>
				</tr>
			<?php
				}
			?>
			</tbody>
	</table>
	</body>
</html>